import useUserStore from '@/store/modules/user'
export default {
    mounted(el, binding, vnode) {
        const roles = useUserStore().roles

        const requiredRole = binding.value;

        if (!roles.includes(requiredRole)) {
            el.style.display = 'none';
        }
    }
}
